#include <stdio.h>

typedef struct
{
	int data[100];
	int length;
}SqList;

int main()
{
	SqList *L;
	int n,i,k=0;
	printf("输入顺序表长度n（n<=100）：");
	scanf_s("%d",&n);
	L = (SqList*)malloc(sizeof(SqList));
	int a[100];
	for (i = 0;i < n;i++)
		scanf_s("%d", &a[i]);
	for (i = 0;i < n;i++)
		L->data[k++] = a[i];
	L->length = n;
	for (i = 0;i < n;i++)
		printf("%d", L->data[i]);//输出顺序表
	return;
}
